package com.adjy.pathbuilders.physics;

import org.jbox2d.callbacks.QueryCallback;
import org.jbox2d.dynamics.Fixture;

public class QueryCollisionCallback implements QueryCallback {
	
	private boolean collided = false;

	@Override
	public boolean reportFixture(Fixture arg0) {
		collided = true;
		return false; // False - Stop Looking for other Fixtures
	}
	
	public boolean hasCollisions() {
		return collided;
	}

}
